From: Richard M. Stallman Date: Sun, 19 Sep 1993 20:04:21 +0000 (+0000) Subject: Use "sh -c pwd" when we want to avoid having the X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~94314 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=dce3d8a95ce4ca9802ad83d8d9d09c27028649e6;p=emacs.git Use "sh -c pwd" when we want to avoid having the shell fix up the value of $PWD. --- diff --git a/configure1.in b/configure1.in index 23cdd962141..48883384d15 100755 --- a/configure1.in +++ b/configure1.in @@ -353,7 +353,7 @@ case "${srcdir}" in . ) ## We may be able to use the $PWD environment variable to make this ## absolute. But sometimes PWD is inaccurate. - if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; pwd)`" = "`pwd`" ] ; then + if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ] ; then srcdir="$PWD" else srcdir="`(cd ${srcdir}; pwd)`"